function gotoLoginPage() {
    uni.navigateTo({
        url: "/pages/login/login"
    })
}

function gotoTermsConfirmPage() {

}

/**
 * 跳转章节详情页面
 * @param {Object} unitId 章节id
 */
function gotoUnitDetailPage(unitId) {
    uni.navigateTo({
        url: `/pages/unit-detail/unit-detail?id=${unitId}`
    })
}

/**
 * 客服页面
 */
function gotoServiceCardPage() {
    uni.navigateTo({
        url: `/pages/services-card/services-card`
    })
}

function gotoMyClassPage() {
    uni.navigateTo({
        url: `/pages/my-class/my-class`
    })
}

module.exports = {
    gotoLoginPage,
    gotoTermsConfirmPage,

    gotoUnitDetailPage,

    gotoServiceCardPage,
    gotoMyClassPage
}